#include <bits/stdc++.h>
using namespace std;
int arr[20],n;
int main() {
    cin>>n;
    for (int i = 0; i < n; ++i) {
        cin>>arr[i];
    }
    while (n!=0){
        cout<<arr[n-1]<<",";
        n--;
    }
}
